package com.example.applets.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.applets.entity.Cart;
import com.example.applets.entity.CartVo;
import com.example.applets.mapper.CartMapper;
import com.example.applets.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 购物车 服务实现类
 * </p>
 *
 * @author 云烟成雨丶
 * @since 2020-10-16
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements CartService {
    @Autowired
    private CartMapper cartMapper;


    @Override
    public List<CartVo> selectWithPro(long userid) {
        return cartMapper.selectWithPro(userid);
    }
}
